<include file="Public:header" />
<include file="Public:leftside" />
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">商品品牌管理</li>
		</ul>
	</div>
	<div class="page-content"> 
    <div class="row panel-body" style="width: 100%;margin: 5px auto;padding: 15px 0;">
      <a href="{:U('Shop/index')}" class="btn btn-sm btn-default">商品管理</a>
      <a href="{:U('Shop/ticketTypeList')}" class="btn btn-sm btn-default">商品分类</a>
      <a href="{:U('Shop/brandList')}" class="btn btn-sm btn-primary">商品品牌</a>
      <a href="{:U('Shop/attributelist')}" class="btn btn-sm btn-default">商品类型</a>

    </div>
    <div class="listContent">
    	<div class="topSearch">
           <form action="__CONTROLLER__/brandList/" method="get">
           <section class="panel-default m-b-sm">
        <div class="alert alert-info" >
          <p>
                    <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
                  </p>
                    <p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>该页面展示了商城所有的商品品牌，可对商品品牌进行编辑修改操作。</p>
                    <p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>可输入商品品牌关键字进行搜索。</p>
              </div>
      </section>
 <div class="search_box_con" style="float: left;width: 100%;padding: 5px 0;">
    <div class="col-sm-9" style="padding: 0">

            <a href="__CONTROLLER__/brandAdd/" class="btn btn-sm btn-primary"><i class="fa fa-plus"></i> 添加品牌 </a> 
  </div>
  <div class="col-sm-2" style="padding: 0">
     <input type="text" name="name" value="{$_GET['name']}" class="form-control input-sm" placeholder="请输入品牌名称"/> 
    </div>
   <div class="col-sm-1" style="padding: 0">
   <input type="submit" class="btn btn-primary btn-sm" value="搜索"> 
    </div>
	      </div>   
           </form>
	    </div>
    	<table class="table table-striped table-bordered table-hover" border="0" cellpadding="0" cellspacing="0" >
           <thead>
        	<tr class="title">
                <th style="width: 50px;">ID</th>
                <th style="width: 50px;">品牌logo</th>
                <th style="width: 200px;">品牌名称</th>
                <th style="width: 200px;">添加时间</th>
                <th style="width: 200px;">是否开启</th>
                <th style="width: 100px;">操作</th>
            </tr>
           </thead>
           <tbody>
            <volist name="array" id="row">
     		 <tr class="list" id="list<?=$row['id']?>">
                <td style="width: 50px;">{$row['id']}</td>
                <td><img src="{$row['image']}" style="height:30px"></td>
                <td style="width: 200px; font-weight:bold;">{$row['name']}</td>
             
                <td>{$row['addtime']|date="Y-m-d H:i:s",###}</td>
                <td><eq name="row['ishidden']" value="0">开启</eq><eq name="row['ishidden']" value="1">关闭</eq></td>
                <td style="width: 100px;">
                    <a href="__CONTROLLER__/brandAdd/id/<?=$row['id']?>">修改</a>&nbsp;&nbsp;
                    <a class="aclick" needconfirm="1" content="确定删除吗?" url="__CONTROLLER__/brandDelete/id/<?=$row['id']?>/ishidden/1">删除</a>&nbsp;&nbsp;
                </td>
             </tr>
            </volist>
           </tbody>
        </table>
        <div class="page">{$page}</div>
    </div>
   </div>
</div>
<include file="Public:footer" />